package com.ankicoo.practice.coding;

import java.util.Scanner;

/**
 * description:  获得特定数量硬币
 *
 * @author : qcyang
 * @date :  2021/5/17 17:11
 */
public class CoinCount {
    public static void pr(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        int sum = 0;
        while(true){
            count(n,sum);


        }
    }

    private static int count(int n,int sum){
        int c = 0;
        int temp = 0;
        if (2*(sum+1)>n){
             temp = ((n-sum)%2==1)?1:2;
            System.out.println(temp);

            if (temp == 1){
                c = (n-sum-1)/2;
            }else {
                c = (n-sum-2)/2;
            }
            System.out.println("("+c+")");
        }
        return c;
    }
}
